package com.sc.pojo;

import java.io.Serializable;
import java.util.Date;

public class Information implements Serializable {
    private User user;

    private User user1;

    private Integer id;

    private Integer send;

    private Integer accept;

    private String title;

    private String content;

    private Integer sendstate;

    private Integer acceptstate;

    private Date createtime;

    private static final long serialVersionUID = 1L;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Information() {
    }

    public User getUser1() {
        return user1;
    }

    public void setUser1(User user1) {
        this.user1 = user1;
    }

    public Information(Integer send, Integer accept, String title, String content, Integer sendstate, Integer acceptstate, Date createtime) {
        this.send = send;
        this.accept = accept;
        this.title = title;
        this.content = content;
        this.sendstate = sendstate;
        this.acceptstate = acceptstate;
        this.createtime = createtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSend() {
        return send;
    }

    public void setSend(Integer send) {
        this.send = send;
    }

    public Integer getAccept() {
        return accept;
    }

    public void setAccept(Integer accept) {
        this.accept = accept;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getSendstate() {
        return sendstate;
    }

    public void setSendstate(Integer sendstate) {
        this.sendstate = sendstate;
    }

    public Integer getAcceptstate() {
        return acceptstate;
    }

    public void setAcceptstate(Integer acceptstate) {
        this.acceptstate = acceptstate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", send=").append(send);
        sb.append(", accept=").append(accept);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", sendstate=").append(sendstate);
        sb.append(", acceptstate=").append(acceptstate);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}